<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${not empty dataList}">
<c:forEach items="${dataList}" var="trade"  varStatus="status">
	<c:choose>
		<c:when test="${trade.trade_state==1}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if> onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：待付款</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==2}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if>   onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已付款</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==3}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if>    onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已导出</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==4}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if>  onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已确认</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==5}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if>  onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已发货</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==6}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if> onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已收货</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
		<c:when test="${trade.trade_state==11}">
			<div class="fahuo" <c:if test="${status.index!=0}">style="margin-top:0"</c:if>  onclick="javascript:viewTradeInfo('${trade.trade_id}')">  
			   	<div class="fahuo_top">订单状态：已取消</div>  
			  	<div class="fahuo_inherit">
				   	<dl>
					    <dt><img src="<%=path %>/uncheck/pictures/servlet?id=${trade.goods_small_img}"  width="100%" height=""/></dt>
						<dd>${trade.goods_name}</dd>
					    <h1>${trade.select_property}</h1>
					    <dd>
						    <h3 style="text-decoration:line-through;">原价：￥${trade.goods_price}</h3>
						    <h5>已领取${trade.buy_num}人次</h5>
						</dd>
				   	</dl>
			  	</div>
			</div>
			<div class="jg" style="background-color:#eee; height:10px"></div>
		</c:when>
	</c:choose>
</c:forEach>
<div id="coupon_loading_more_div">
	<input type="hidden" id="coupon_pageNo" value="${paramMap.pageNo}">
	<input type="hidden" id="coupon_pageCount" value="${paramMap.pageCount}">
	<c:if test="${paramMap.pageNo<paramMap.pageCount}">
	<a id="coupon_loading_more" onclick="couponLoadMore()" class="loading-more">加载更多…</a>
	</c:if>
</div>
</c:when>
<c:otherwise>
	<div class="fahuo">  
	   	<div class="fahuo_top">暂无数据</div> 
	</div>
</c:otherwise>
</c:choose>